package org.jctc.els.modules.biz.service.elsUserProject;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.jctc.els.modules.biz.entity.ElsUserProject.ElsUserProject;
import org.jctc.els.modules.biz.entity.elsTeamMembers.ElsTeamMembersVO;
import org.jctc.els.modules.biz.entity.user.User;
import org.jctc.els.modules.biz.vo.ElsUserProjectVO;
import org.springblade.core.mp.base.BaseService;

import java.util.ArrayList;
import java.util.List;

/**
 * @author maxinyu
 * @title: ElsUserProjectService
 * @projectName evaluationsystem-boot
 * @description:
 * @date 2022/6/2110:12
 */
public interface ElsUserProjectService extends BaseService<ElsUserProject> {
    /**
     * 查询用户绑定此项目是否已存在
     * @param userId
     * @param projectId
     * @return
     */
    int selectUserProjectAlreadyExists(Long userId, Long projectId);

    IPage<ElsUserProjectVO> getProjectsList(IPage<ElsUserProjectVO> page, String teamId, String userId);

    void removeListByIds(List<Long> ids);

    ArrayList<ElsUserProject> selectProjectByUserId(Long userId);

    ElsUserProject selectUserProject(Long aLong);
}
